package com.mz.ieann.aide.dialog

import androidx.fragment.app.FragmentActivity

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by zhangmz90
 * @date on 2021 2021/11/14 13:39
 */
object DialogFactory {

    fun showWarning(activity: FragmentActivity, message: String, left: String? = null, right: String? = null, sure: ()-> Unit = {  }) {
        WarningDialog.Builder().setMessage(message).setLeft(left).setRight(right).create(sure).show(activity)
    }

    fun showSuccess(activity: FragmentActivity, message: String, right: String? = null, sure: ()-> Unit = {  }){
        SuccessDialog.Builder().setMessage(message).setRight(right).create(sure).show(activity)
    }

}